<?php

class Application_Model_DetailSilinder extends Zend_Db_Table_Abstract
{
    protected $_name = 'tabel_detail_silinder';
    
    public function detailSilinderBaru($data)
    {
        $id = $this->insert($data);
        return $id;
    }
    
    public function getDataJoin($id){
        $select = $this->select();
        $select->from($this->_name)
               ->setIntegrityCheck(false)
               ->where('id_hasil_pemeriksaan = ?', $id)
               ->joinLeft('tabel_suhu_silinder', 'tabel_suhu_silinder.id_suhu_silinder = tabel_detail_silinder.id_suhu_silinder');
        $result = $this->fetchAll($select);
        
        return $result->toArray();
    }

}

